home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_strings.lha / Strings / str_data.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-25  |  1.9 KB  |  56 lines

  1. /* Module Header
  2. ** -------------
  3. ** This object file must be linked right at the start of the output file.
  4. ** It is very important that the "struct ModHeader" part stays at the top,
  5. ** or the module will not work.
  6. */
  7.  
  8. #define DPKNOBASE 1
  9.  
  10. #include <proto/dpkernel.h>
  11.  
  12. #define STRMOD_VERSION  1
  13. #define STRMOD_REVISION 0
  14.  
  15. extern BYTE ModAuthor[];
  16. extern BYTE ModDate[];
  17. extern BYTE ModCopyright[];
  18. extern BYTE ModName[];
  19. extern struct Function JumpTableV1[];
  20.  
  21. extern LIBFUNC LONG (CMDInit)(mreg(__a0) struct Module *, mreg(__a1) APTR DPKBase,
  22.                      mreg(__a2) struct GVBase *, mreg(__d0) LONG dpkVersion,
  23.                      mreg(__d1) LONG dpkRevision);
  24. extern LIBFUNC void (CMDClose)(mreg(__a0) struct Module *);
  25. extern LIBFUNC LONG (CMDExpunge)(void);
  26. extern LIBFUNC LONG (CMDOpen)(mreg(__a0) struct Module *);
  27.  
  28. struct ModHeader ModHeader = {
  29.   MODULE_HEADER_V1, /* Version of this structure */
  30.   CMDInit,          /* Init() */
  31.   CMDClose,         /* Close() */
  32.   CMDExpunge,       /* Expunge() */
  33.   JMP_LVO,          /* Type of module table to be generated for our own use */
  34.   0,                /* Reserved */
  35.   ModAuthor,        /* Author that wrote the module */
  36.   JumpTableV1,      /* Pointer to function list */
  37.   CPU_68000,        /* The type of CPU that this module is compiled for */
  38.   STRMOD_VERSION,   /* Version of this module */
  39.   STRMOD_REVISION,  /* Revision of this module */
  40.   DPKVersion,       /* Required DPK Version */
  41.   DPKRevision,      /* Required DPK Revision */
  42.   CMDOpen,          /* Open() */
  43.   0,                /* Reserved */
  44.   ModCopyright,     /* Copyright and Company information */
  45.   ModDate,          /* The date of module compilation */
  46.   ModName,          /* The name of this module */
  47.   JMP_LVO,          /* The dpkernel jump table that we want */
  48.   0                 /* Reserved */
  49. };
  50.  
  51. struct ModPublic *Public;
  52. struct DPKBase   *DPKBase;
  53. struct GVBase    *GVBase;
  54. struct STRBase   *STRBase;
  55.  
  56.